<html>
<head>
<body>



<table border="1">
	<tr>
	<td colspan="5" align="center">CRUD-MVC</td>
	</tr>
	<tr>
	
	</tr>
	<tr>
		<td>ID</td>
		<td>MATRICULA</td>
		<td>CARRERA</td>
		<td colspan="5" align="center"><a href="index.php?alta=1">Alta Registros</a></td>
	</tr>
	<?php
	
	if($datos)
	foreach($datos as $key => $row){
	?> 
	<form action="index.php?modificar=1&id=<?=$row["id"]?>" method="post">
	<tr>
		<td><?=$row["id"]?></td>
		<td><input type="text" id="txtMatricula" name="txtMatricula" value="<?=$row["matricula"]?>"/></td>
		<td><input type="text" id="txtCarrera" name="txtCarrera" value="<?=$row["carrera"]?>"/></td>
		<td><a href="index.php?borrar=1&id=<?=$row["id"]?>">Eliminar</a></td>
		<td><input type="submit" value="Modificar"></td>
		
	</tr>
	</form>
	<?php }?>
	<div><?=$msg?></div>
	<tr>
		
	</tr>
</table>


</script>
</body>
</head>
</html>